package com.bcn.login_mybatis_demo.mapper;

import com.bcn.login_mybatis_demo.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserRoleMapper {
    void insertUserRole(@Param("user_id") Integer user_id, @Param("role_id") Integer role_id);
    void deleteUserRolesByUserId(Integer user_id);
    List<Role> findRolesByUserId(Integer user_id);
}
